#ifndef BASE_NOTIFICATION_H
#define BASE_NOTIFICATION_H

#include <pthread.h>

class Notification {
 public:
  Notification();
  void WaitForNotification();
  void Notify();

 private:
  pthread_mutex_t mutex_;
  pthread_cond_t cond_;
  bool notified_;
};

#endif
